import request from '@/utils/request'

// 查询洗车订单列表
export function listOrderDetails(query) {
  return request({
    url: '/carService/orderDetails/list',
    method: 'get',
    params: query
  })
}

// 查询洗车订单详细
export function getOrderDetails(orderDetailsId) {
  return request({
    url: '/carService/orderDetails/' + orderDetailsId,
    method: 'get'
  })
}

// 新增洗车订单
export function addOrderDetails(data) {
  return request({
    url: '/carService/orderDetails',
    method: 'post',
    data: data
  })
}

// 修改洗车订单
export function updateOrderDetails(data) {
  return request({
    url: '/carService/orderDetails',
    method: 'put',
    data: data
  })
}

// 删除洗车订单
export function delOrderDetails(orderDetailsId) {
  return request({
    url: '/carService/orderDetails/' + orderDetailsId,
    method: 'delete'
  })
}
